package com.whzjkj.gateway.vo;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @description: 通用应答消息体
 * @author: Mr.Hu
 * @create: 2018-11-01 11:54
 **/
@Data
@Accessors(chain = true)
public class ServerCommonRespondBody{
    /**
     * 应答流水号
     */
    private int respondFlowNo;
    /**
     * 应答ID
     */
    private int respondMessageId;
    /**
     * 应答结果
     */
    private byte respondCode;



    public enum ServerCommonRespondBodyEnum{
        RESPONDCODE_SUCCESS((byte)0,"成功/确认"),
        RESPONDCODE_FAIL((byte)1,"失败"),
        RESPONDCODE_MESSAGE_ERROR((byte)2,"消息有误"),
        RESPONDCODE_UNSUPPORTED((byte)3,"不支持"),
        RESPONDCODE_MESSAGE_ERROR_ACK((byte)4,"报警处理确认");

        public byte code;
        public String msg;

        ServerCommonRespondBodyEnum(byte code, String msg) {
            this.code = code;
            this.msg = msg;
        }

    }
}

